package com.teemor.blog.bean.entity;

import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class TbFootprint {
    private Integer id;

    /**
     * 文章ID
     */
    private Integer atcId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * ip地址
     */
    private String ipAddress;

    /**
     * 用户所在地
     */
    private String userAddress;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 数据状态
     */
    private Integer dataState;

    public TbFootprint(Integer atcId, String ipAddress) {
        this.atcId = atcId;
        this.ipAddress = ipAddress;
        this.createTime = new Date();
    }
}